約 4,069,115 件
https://w.atwiki.jp/java_pro/pages/29.html
import java.io.*; public class CountNumber { public static void main(String[] args){ for (int i = 1; i = 100; i++){ System.out.println(i); } } }
https://w.atwiki.jp/a_kurosawa/pages/15.html
◆Java ◆Java日付の変換 Java SEとかEEとかSDKとかJDSとかJ2SEとかJREとかとか。 EnumクラスをStringにすると、変数の内容消える 自前クラスでのequalsはオーバーライドしないとちゃんと動かない 日付の変換 Date date = DateFormat.getDateInstance().parse(str); getDateInstance()←Date忘れないでね Formatを指定して変換 例えば、Tue, 04 Dec 2012 10 01 05 +0900のような形式。 SimpleDateFormat objFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH mm ss Z", Locale.ENGLISH); Date date = objFormat.parse(str); Local.ENGLISHないとフォーマットできないみたい。 参考 あー、超ハマった。 Java SEとかEEとかSDKとかJDSとかJ2SEとかJREとかとか。 Java SE Java SEとはStandard Editionの略です。 Javaの基本的な関数が入っています。 APIと呼ばれるものです。 例えば、java.lang.Stringとか Java.lang.Systemとかです。 String str = ""; str.equals("あ")とか System.out.print()とか使ったことありませんか? それです。 ちなみにJ2SEというのは、 バージョン1.5(5.0)までの昔の呼び方で、 今はJava SEで統一されているみたいです。 J2の後ろの部分がJava SEのSEの部分なので、 J2EEだったら下のJava EEのこと、 J2MEだったらJava MEと呼ばれるAPIのことです。 Java EE Java EEとはEnterprise Editionの略です。 JavaでWebサイトなどを作る際に必要な関数が入っています。 Servletとかjspの関数などが含まれています。 web.xmlなどをいじってServletクラスを作ったり、 StrutsやSeasarなどのライブラリを使ったことがなければ 縁のない関数かもしれません。 SDK SDKはSoftware Development Kit(ソフトウェア開発キット)の略です。 Javaに関わらずソフトウェアを開発するのに必要なツールが 一式入ってますよというものです。 なのでJavaだと、上で書いたJava SE(Standard Edition)も入っています。 他にはソースを*.classファイルにコンパイル(翻訳)するツール、 作ったアプリケーションを実行する環境などが入っています。 JDK JDKとはJava Development Kit(Java開発キット)の略です。 Javaを開発するのに必要なツールが一式入ってます。 Java専用のSDKということですね。 内容の構成はSDKと同じで、 標準API(Java SE) コンパイラ(*.javaのソースファイルを*.classファイルに翻訳するツール) 実行環境 などが入っています。 JDKはJavaの開発に必要な最低限のツール一式なので、 Java EEは入っていません。 もしかしたらアプレットを作るかもしれませんし、 Webではなく端末上で動くアプリケーションを作るかもしれませんからね。 それらは別途インストールしなければなりません。 補足ですが、JDKのバージョンは1.5、1.6、1.7などありますが、 それらは5.0、6.0、7.0とも呼ばれたりします。 まだ2.0まで行ってないので、1が略されてるみたいですね~。ややこしい。 参考 JRE JREとはJava Runtime Environmentの略です。 上のJDKの項目の実行環境の部分です。 例えば、eclipseなどでアプリケーションを実行する時に必要なツールです。 そのままですが。 コーヒーのマークのたまに更新の通知があがるあのツールです。 このJREにもJava SEやJava EEのように種類があり、 公開JREと非公開JREといいます。 JDKの中に入っているJREは、 JREの中でも基本的なものだけ入っている実行環境です。 これが非公開JREです。 ちなみに非公開JREはJDKの一部というイメージなので、 インストールしたりアンインストールしたりできません。 JDKをアンインストールしたら一緒に消えるという感じです。 更新の通知があがるツールは公開JREです。 参考 EnumクラスをStringにすると、変数の内容消える JavascriptでAjaxでSeasarのActionにアクセスし、 RESULTというEnumを作り、statusとmessageという変数を作成し、 RESULT SUCCESS(0, "成功しました。")のようなのを作って、 返しました。 JavaのEnumの王道の使い方だと思ってたのですが… ResponseUtil.write(JSON.encode(SUCCESS), "text/javascript"); のようにjavascriptに渡すと、 受け取った時に"SUCCESS"というString型になっていて、 statusもmessageもundefinedになります…。。 くそー、JavaのEnumはどう使えっちゅーんだっ 自前クラスでのequalsはオーバーライドしないとちゃんと動かない Javaではクラスは全てObjectを自動的に継承しているので、 equals()を使えるんだが、 そのまま使おうとするとパラメーターが全て一致していても falseが返ってくる。 これはアドレスを見ているからだ。 データが保存されたアドレスはクラスをnewする度に 全く同じインスタンスを比較しないとtrueは返らない。 そこで正しく動作するequals()を実装する為の システムがeclipseには備わっている。 ソースで右クリック→ソース→hashCode() 及び equals() の生成 これを実行するとhashCode()とequals()が自動生成されて 保持しているパラメータが全て一致していればtrueを返す equals()が使えるようになる。 ただし、参考演算子を使っていたり、 if (true) return false; のような括弧を使わないif文などが書かれているので チェックスタイルに引っかかる場合は 自分で直さなくてはいけない。
https://w.atwiki.jp/gen3/pages/20.html
java javaドキュメンテーションコメント多言語フィルタ 2013-11-23 以下はあまり役に立たないアイデア。javascriptにでも既定の言語を検出して表示するdivを選択するようなコードを書くほうがすっきりする。 javadocを多言語化する方法として、ドキュメントコメントを例えば次のように書いておき、 /** * div lang="ja" これは日本語のコメントです。 * 第二行目から詳細コメントになるのはjavadocの仕様です。 * /div * div lang="en" This is a English comment. * The second line and belows are details, because of javadoc specification. * /div */ void Dummy() {} これを処理するdocletで例えば -sellang ja とすれば void Dummy() これは日本語のコメントです。 第二行目から詳細コメントになるのはjavadocの仕様です。 となり -sellang en,ja とすれば void Dummy() This is a English comment. The second line and belows are details, because of javadoc specification. これは日本語のコメントです。第二行目から詳細コメントになるのはjavadocの仕様です。 となるようなカスタムdocletが比較的簡単に作れる気がする。 docletの処理内容は、単に div lang=xx のブロックを選択したり並べ替えたりするだけで、あとは標準のjavadocの処理に任せればよい。 まあ、@xxxみたいなタグもあるので span lang="ja" みたいなのも処理できたほうがいいのかな。 というわけで書いてみたらわりと目処が付いたみたいなので、そのうち公開予定。 javaドキュメンテーションコメント多言語フィルタ javaでMP3ファイルのID3タグを読む JavaでID3タグを見る件に関しては、Java ID3 Tag Libraryが老舗らしい。 ファイルオブジェクトを引数としてコンストラクタを呼べば、 取得したオブジェクトからID3の中身の曲名とかアルバムタイトルとかを各種getメソッドで取得できるらしい。設定も出来る模様。日本語環境で扱う場合は文字エンコードに注意しなければならないこともある様子だが。 java.util.logging.Loggerの設定がgetConnectionで書き換わるバグ...ではなかった 以下は System.setProperty("hsqldb.reconfig_logging", "false"); とすればよい、とHSQLDBのヘルプフォーラムで回答をもらった。以下は同様にはまるかもしれないヒトのために整理しながら残しておく。 getConnectionの後に、java.util.Loggerのメッセージが出なくなるとかで悩んだ。 以下、再現可能なコード。 import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; /** * 最小構成。新規のパス(URL)を与えて新たにDBを作成すると、Connectionの後のLOGが出ない。 * @author usr1 */ public class LogTest { private static final Logger LOG = Logger.getLogger("TEST"); public static void main(String[] args) { LOG.setLevel(Level.ALL); Connection c = null; try { LOG.info("getConnection前"); System.out.println(LOG.getParent().getHandlers()[0].getFormatter().getClass().getName()); c = DriverManager.getConnection("jdbc hsqldb file //" + args[0] + ";shutdown=true;", "SA", ""); System.out.println(LOG.getParent().getHandlers()[0].getFormatter().getClass().getName()); LOG.setLevel(Level.ALL); LOG.info("getConnection後"); c.close(); } catch (SQLException e) { } } } 上記のコードにて、DBのパスを書き換えた直後の実行(つまり新たなDBを作成して接続する場合)では、以下のようにログメッセージ「getConnection後」が出力されない。Loggerのフォーマッタやハンドラが書き換わってしまっている。 (1回目) C \ java -jar LoggerTest.jar c \test\test99 11 23, 2013 1 00 29 午後 newpackage.LogTest main 情報 getConnection前 java.util.logging.SimpleFormatter org.hsqldb.lib.BasicTextJdkLogFormatter (2回目) C \ java -jar LoggerTest.jar c \test\test99 11 23, 2013 1 00 44 午後 newpackage.LogTest main 情報 getConnection前 java.util.logging.SimpleFormatter java.util.logging.SimpleFormatter 11 23, 2013 1 00 46 午後 newpackage.LogTest main 情報 getConnection後 上のように常に二回目以後が大丈夫ならまだいいのだが、これとは違うもっと大きなコードの中では二回目以後も出力されずに困る。 Logger.getGlobal().setLevel(Level.INFO) も試したが効果は無い。 ネットを検索するとJava SE 7 の logger にはバグがあるそうだが、それとの関係は不明。 NetBeansのデバッグモードで見るとLOG.manager.propsは正常なら9個の配列で、 LOG.manager.props[3] "java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter" とコンソールへの出力が標準のフォーマッタに設定されている。 これが新規のパスにgetConnectionした後だと、 java.util.logging.ConsoleHandler.formatter = org.hsqldb.lib.BasicTextJdkLogFormatter という結果になり、DriverManagerがログの設定を書き換えたまま戻していないようである。 HSQLDBのヘルプフォーラムで質問すると速攻で System.setProperty("hsqldb.reconfig_logging", "false"); で解決すると回答をもらった。HSQLDBは2,3のシステムプロパティを使っているとのこと。
https://w.atwiki.jp/m1000/pages/24.html
Javaアプリ M1000のJavaの仕様 CLDC v1.0 and MIDP v2.0 compliant Maximum MIDlet suite size Available Space (24M) Heap size Available RAM (16M) Maximum record store size Available Space (24M) MIDlet storage available Available Space (24M) Interface connections HTTP, HTTPS,Socket, SeverSocket,SMS UDP Maximum number of sockets TBD Supported image formats .PNG, .JPEG Double buffering Supported Encoding schemes ISO8859_1, ISO10646 Input methods Touch Screen Additional API’s JSR 82, JSR 120, JSR 135,JSR 185 Audio MIDI, WAV, AMR, MP3 Video MPEG4 JSR 82 Java APIs for Bluetooth http //jcp.org/en/jsr/detail?id=82 (Java API for OBEXは未対応) JSR 120 Wireless Messaging API (WMA) 1.0 http //jcp.org/en/jsr/detail?id=120 SMSを含むメッセージ機能 JSR 135 Mobile Media API(MMAPI) 1.1 http //jcp.org/en/jsr/detail?id=135 マルチメディア機能 MIDletでもNative APIにアクセスできる手段はある模様 http //www.symbian.com/developer/techlib/papers/java_MIDP.asp ツール Motorola SDK for J2ME http //www.motocoder.com/motorola/template.jsp?filename=center_toolsSDK.jsp J2ME Wireless Toolkit 2.2 J2ME Wireless Toolkit ダウンロード 2.2 リリース J2SE J2SE Downloads EclipseME(Eclipse用MIDlet開発プラグイン Eclipse統合開発環境 参考書籍 MIDP 2.0 携帯Javaアプリ開発ハンドブック 参考HP ドコモ仕様とMIDPはどう違う? 携帯Java最新事情 MIDPプログラミング入門(前編) MIDPプログラミング入門(後編) J2ME™ specifications http //www.java.sun.com/j2me MIDP v2.0 specifications http //www.java.sun.com/products/midp CLDC v1.0 specifications http //www.java.sun.com/products/cldc Midlet.org MIDletアプリ配布サイト midlet.org - wireless java downloads HTTP通信でサーバからUTF-8で送信した日本語文字列が化けてしまうのはなぜだかわかりますか?確かM1000アプリではUTF-8はいけたはずなのですが。"SJIS"はサポートされていませんので、WTKでは日本語が表示できても、M1000では、化けたままでしたし。誰かお分かりになる方いらっしゃいませんか? -- 名無しさん (2005-08-26 18 01 24) 例えば文字コードのbyte配列を文字列にする場合new String(bytes[], "UTF-8");と意図的にエンコードを指定してやる必要があるかも。既にやっていたり的違いだったらすみません。 -- 名無しさん (2005-08-27 00 21 07) ゼロからJava開発環境を作るなら、“J2SE Development Kit 5.0 Update 6 with NetBeans 4.1 Bundle”と“NetBeans Mobility Pack 4.1”の組み合わせが楽だと思います。 -- 名無しさん (2005-12-25 21 16 08) lng3rewe hf0b1cq810ds 9lbt08zek78jb36hu -- phil9x8799 (2007-07-19 12 49 40) zpzhs40z29 ske20m8xui6p lolo2kkdaq6w9l8 -- x1b2sluit2 (2007-07-19 12 50 52) null espouse bipartisan?isolated balsam adjudges Egyptology subtler,caffein? -- 名無しさん (2008-08-25 08 30 57) null glad cholera.Angeles!squatting ray!debug tracts consensual,gory skunk.bridling [http //www.homeownersinsurok.com/a-m-best-ratings-on-homeowners-insurance.html post office home insurance ] http //www.homeownersinsurok.com/a-m-best-ratings-on-homeowners-insurance.html reformatted.Mali!symbolic?regular hollow [http //www.homeownersinsurok.com/aaa-home-insurance-quotes.html fla mobil home insurance aaa home insurance quotes] http //www.homeownersinsurok.com/aaa-home-insurance-quotes.html derogatory!enjoining?[http //www.homeownersinsurok.com/aaa-home-owners-insurance.html property and casualty insurance ] http //www.homeownersinsurok.com/aaa-home-owners-insurance.html icosahedra?expect confirmations [http //www.homeownersinsurok.com/aaa-homeowner-insurance-premium-increase.html mobile home insurance quotes ] http //www.homeownersinsurok.com/aaa-homeowner-insurance-premium-increase.html relent gigavolt lords peppy [http //www.homeownersinsurok.com/arizona-home-owners-insurance.html what does homeowners insurance cover ] http //www.homeownersinsurok.com/arizona-home-owners-insurance.html mounting Pablo Alastair circularity?incompleteness [http //www.homeownersinsurok.com/certified-property-insurance.html home insurance rates ] http //www.homeownersinsurok.com/certified-property-insurance.html socialism Archie [http //www.homeownersinsurok.com/cheap-landlord-insurance-in-america.html prudential home insurance ] http //www.homeownersinsurok.com/cheap-landlord-insurance-in-america.html single intestine Howard [http //www.homeownersinsurok.com/compare-home-insurance.html best home insurance ] http //www.homeownersinsurok.com/compare-home-insurance.html cobbler.repositioning [http //www.homeownersinsurok.com/cost-of-home-title-insurance-new-hampshire.html homeowner insurance quote ] http //www.homeownersinsurok.com/cost-of-home-title-insurance-new-hampshire.html garbled?pin regiments hottest less![http //www.homeownersinsurok.com/false-flood-insurance-fraud-statute-of-limitations.html asda home insurance ] http //www.homeownersinsurok.com/false-flood-insurance-fraud-statute-of-limitations.html drapers!memoir appeals,[http //www.homeownersinsurok.com/flood-insurance-cost.html home inspectors insurance ] http //www.homeownersinsurok.com/flood-insurance-cost.html nestles standstill Fritz [http //www.homeownersinsurok.com/flood-insurance-tips.html flood insurance tips rental home insurance ] http //www.homeownersinsurok.com/flood-insurance-tips.html addictions!variances [http //www.homeownersinsurok.com/florida-apartment-business-insurance.html renters insurance ] http //www.homeownersinsurok.com/florida-apartment-business-insurance.html nun tunnel correctives door card,[http //www.homeownersinsurok.com/florida-hurricane-insurance.html building insurance landlord ] http //www.homeownersinsurok.com/florida-hurricane-insurance.html expenses infinitives chairman Africans [http //www.homeownersinsurok.com/florida-property-insurance-rates.html cheap homeowners insurance ] http //www.homeownersinsurok.com/florida-property-insurance-rates.html dismally advertisement [http //www.homeownersinsurok.com/free-homeowners-insurance-quotes.html home insurance policy ] http //www.homeownersinsurok.com/free-homeowners-insurance-quotes.html Asiatic strategist inspections Saxonizes plainly [http //www.homeownersinsurok.com/free-quote-mobile-home-insurance.html citizens property insurance florida ] http //www.homeownersinsurok.com/free-quote-mobile-home-insurance.html Madsen pocketbook balkiness obsolescent psychology?[http //www.homeownersinsurok.com/gmac-home-owners-insurance.html flood insurance rate maps ] http //www.homeownersinsurok.com/gmac-home-owners-insurance.html aspect evenly proximal [http //www.homeownersinsurok.com/guest-house-insurance.html buy flood insurance ] http //www.homeownersinsurok.com/guest-house-insurance.html dialog slick portage Rousseau [http //www.homeownersinsurok.com/home-building-contractors-insurance.html oldier home insurance ] http //www.homeownersinsurok.com/home-building-contractors-insurance.html Cezannes.hopeful butyrate dealership.Wellman.[http //www.homeownersinsurok.com/home-insurance-companies-in-ohio.html home insurance new york ] http //www.homeownersinsurok.com/home-insurance-companies-in-ohio.html disadvantage declassify sinusoid traveled glittered [http //www.homeownersinsurok.com/home-insurance-coverage-and-black-mold-and-florida.html home insurance chicago ] http //www.homeownersinsurok.com/home-insurance-coverage-and-black-mold-and-florida.html neutralize instigating?[http //www.homeownersinsurok.com/home-insurance-in-illinois.html home insurance fl ] http //www.homeownersinsurok.com/home-insurance-in-illinois.html carters interpolates fleshly tabulate.[http //www.homeownersinsurok.com/home-insurance-online-quotes.html home beneficial life insurance ] http //www.homeownersinsurok.com/home-insurance-online-quotes.html spindling elitist?invective [http //www.homeownersinsurok.com/home-owners-insurance-answer-center.html gmac home insurance ] http //www.homeownersinsurok.com/home-owners-insurance-answer-center.html eyewitnesses,gravitate infrastructure aqua [http //www.homeownersinsurok.com/home-owners-insurance-discrimination-laws.html house insurance company in allentown ] http //www.homeownersinsurok.com/home-owners-insurance-discrimination-laws.html hemlock domains Rockland reboot trumps [http //www.homeownersinsurok.com/home-owners-rights-foreclosure-fha-mortgage-insurance.html florida mobile home hurricane insurance ] http //www.homeownersinsurok.com/home-owners-rights-foreclosure-fha-mortgage-insurance.html Jacoby!ignores.lilacs increasing mailings![http //www.homeownersinsurok.com/home-state-county-mutual-insurance.html hurricane insurance in florida ] http //www.homeownersinsurok.com/home-state-county-mutual-insurance.html prudent!vagabonds!heterogeneous [http //www.homeownersinsurok.com/homeowner-insurance-for-pitbull-owners.html flood insurance rate maps ] http //www.homeownersinsurok.com/homeowner-insurance-for-pitbull-owners.html paperwork Utrecht [http //www.homeownersinsurok.com/homeowner-insurance-policy-template-example.html homeowner insurance companies ] http //www.homeownersinsurok.com/homeowner-insurance-policy-template-example.html peppers Stanhope twirl infeasible [http //www.homeownersinsurok.com/homeowners-insurance-compare.html home owner insurance quotes ] http //www.homeownersinsurok.com/homeowners-insurance-compare.html Babul antiquate [http //www.homeownersinsurok.com/homeowners-insurance-for-south-florida.html aarp home owners insurance ] http //www.homeownersinsurok.com/homeowners-insurance-for-south-florida.html pilgrimage.Keyes [http //www.homeownersinsurok.com/homeowners-insurance-palm-beach-county.html best home insurance ] http //www.homeownersinsurok.com/homeowners-insurance-palm-beach-county.html clement Kelsey [http //www.homeownersinsurok.com/house-insurance-companies-statesboro-ga.html home insurance rate ] http //www.homeownersinsurok.com/house-insurance-companies-statesboro-ga.html gorges intellectuals taxiing?overrode Mickey [http //www.homeownersinsurok.com/house-insurance-comparison.html california home owner insurance ] http //www.homeownersinsurok.com/house-insurance-comparison.html codeword?index [http //www.homeownersinsurok.com/how-much-condo-insurance.html home state county insurance company ] http //www.homeownersinsurok.com/how-much-condo-insurance.html hosted Alsatian [http //www.homeownersinsurok.com/low-cost-home-insurance.html insurance home owners ] http //www.homeownersinsurok.com/low-cost-home-insurance.html cursor beginnings bilabial staging [http //www.homeownersinsurok.com/low-rate-florida-homeowners-insurance.html login ] http //www.homeownersinsurok.com/low-rate-florida-homeowners-insurance.html generalization appointing![http //www.homeownersinsurok.com/manhattan-life-insurance-building.html geico home insurance ] http //www.homeownersinsurok.com/manhattan-life-insurance-building.html etymology minicomputers hierarchy [http //www.homeownersinsurok.com/maryland-homeowner-insurance-policy-exclusions.html aig home insurance ] http //www.homeownersinsurok.com/maryland-homeowner-insurance-policy-exclusions.html newly varnish uninteresting initiate orbiter [http //www.homeownersinsurok.com/mass-property-insurance.html homeowners insurance companies ] http //www.homeownersinsurok.com/mass-property-insurance.html layoff Zanzibar Amiga [http //www.homeownersinsurok.com/metropolitan-direct-property-and-casualty-insurance-company.html safeco home insurance ] http //www.homeownersinsurok.com/metropolitan-direct-property-and-casualty-insurance-company.html reassures inker [http //www.homeownersinsurok.com/mobile-home-insurance-policies.html major home insurance companies ] http //www.homeownersinsurok.com/mobile-home-insurance-policies.html prodigal Armata dietary [http //www.homeownersinsurok.com/mobile-home-owners-insurance-florida.html low rate florida homeowners insurance ] http //www.homeownersinsurok.com/mobile-home-owners-insurance-florida.html Pomerania ornamentation,document,[http //www.homeownersinsurok.com/nrma-home-insurance.html homeowner insurance florida ] http //www.homeownersinsurok.com/nrma-home-insurance.html slings designer uselessness [http //www.homeownersinsurok.com/progressive-insurance-home-page.html prudential home insurance ] http //www.homeownersinsurok.com/progressive-insurance-home-page.html nimble chill!disbursements [http //www.homeownersinsurok.com/renters-insurance-ca.html visit now ] http //www.homeownersinsurok.com/renters-insurance-ca.html chamberlains Rheinholdt Speakerphones rookie![http //www.homeownersinsurok.com/renters-insurance-for-apartments-in-augusta-ga.html mandatory homeowners insurance ] http //www.homeownersinsurok.com/renters-insurance-for-apartments-in-augusta-ga.html gravestone stranglers [http //www.homeownersinsurok.com/vacant-home-insurance.html homeowner insurance quotes ] http //www.homeownersinsurok.com/vacant-home-insurance.html costing bereft modest.modulo![http //www.homeownersinsurok.com/vacant-property-insurance.html allstate home insurance ] http //www.homeownersinsurok.com/vacant-property-insurance.html - Tons of interesdting stuff!!! -- 名無しさん (2008-08-31 08 11 19) 名前 コメント
https://w.atwiki.jp/yo-kichi/pages/23.html
JavaのAPIってオーバーロードしすぎだろちゃんと処理にもとづいた名前付けろよ! 多分使う側が中の処理は意識しなくてもいい場合にオーバーロードを多用してる。 また、前のバージョンとの関係で不適切な名前を変えてない場合もあるかも。 コメント
https://w.atwiki.jp/bambooflow/pages/81.html
Java Javaについてのメモ。 インストール はじめの一歩 Hello World 変数と定数 演算子 制御文 配列 メソッド クラス 継承 インターフェース パッケージ スレッド 例外処理 ファイル処理 リファレンス Java SE6 API
https://w.atwiki.jp/cappu/pages/26.html
Eclipse Tips Java クラス検索 Ctrl+Shift+T リソースファイル検索 Ctrl+Shift+R Eclipse起動オプション一覧 Running Eclipse eclipse -vmargs -Xmx memory size -data workspacePath ワークスペース指定 -nl locale Example values "en_US" and "fr_FR_EURO" -consolelog クラス検索 Ctrl+Shift+T リソースファイル検索 Ctrl+Shift+R VM引数 メモリ使用領域 -Xms40m -Xmx256m Permanent Space 初期値1MB -XX PermSize 2m Permanent Space 最大値64MB -XX MaxPermSize 128m
https://w.atwiki.jp/java_pro/pages/41.html
public class NamedCircle extends Circle{ String name; public static void main(String[] args){ NamedCircle nc = new NamedCircle(); nc.name = "java"; nc.setRadius(12); System.out.println(nc.name); System.out.println(nc.toString()); } }
https://w.atwiki.jp/api_programming/pages/62.html
http //www.javadrive.jp/servlet/ JSP(Wikipedia) 下位ページ JSTL Content 変数の値を出力する リクエストパラメータを操作するServletから値を貰う場合 JSTL 画面表示部分の作成にはJSPが適しており、データベースとの接続などバックエンドで動く部分はサーブレットで作成するのが適しています JSPはHTMLページの中にJavaのコードを埋め込む 変数の値を出力する %= % 式の評価を出力 - JavaDrive リクエストパラメータを操作する http //www.example.com/test? bold(){hoge=aaa} request.getParameter("hoge") JSP-6.暗黙オブジェクト(request) - Javaの道 Servletから値を貰う場合 Servlet側で一つの要素(Attribute)として追加してもらう。 Java/Servlet JSTL JSTL - 忘れっぽいエンジニアのJakarta Strutsリファレンス
https://w.atwiki.jp/java_pro/pages/38.html
public class MethodTest { public static ??? getYourName(String myouji, String name){ String[] result; result = ?????; ???? = myouji; ???? = name; return ????; } public static void main(String[] args){ String[] shimei; ???? = getYourName("java", "太郎"); System.out.println("名字は" + ????); System.out.println("名前は" + ????); } }